import { RouteRecordRaw } from 'vue-router'

export default [
  {
    path: '/share',
    component: () => import('@renderer/layouts/dialog/index.vue'),
    children: [
      {
        name: 'filePage',
        path: 'filePage',
        component: () => import('@renderer/views/share/filePage.vue'),
      },
      {
        name: 'filePages',
        path: 'filePages',
        component: () => import('@renderer/views/share/filePages.vue'),
      },
    ],
  },
  {
    path: '/project',
    component: () => import('@renderer/layouts/dialog/index.vue'),
    children: [
      {
        name: 'projectDir',
        path: 'projectDir',
        component: () => import('@renderer/views/project/projectDir.vue'),
      },
      {
        name: 'projectFile',
        path: 'projectFile',
        component: () => import('@renderer/views/project/projectFile.vue'),
      },
    ],
  },
  {
    path: '/cost',
    component: () => import('@renderer/layouts/dialog/index.vue'),
    children: [
      {
        name: 'costBalance',
        path: '',
        component: () => import('@renderer/views/compute/template/cost/balance.vue'),
      },
    ],
  },
  {
    path: '/ruleList',
    component: () => import('@renderer/layouts/dialog/index.vue'),
    children: [
      {
        name: 'ruleList',
        path: '',
        component: () => import('@renderer/views/mine/ruleList.vue'),
      },
    ],
  },
  {
    path: '/collection',
    component: () => import('@renderer/layouts/collection/index.vue'),
    children: [
      {
        name: 'collectionData',
        path: 'collectionData',
        component: () => import('@renderer/views/compute/collectionData.vue'),
      },
    ],
  },
  {
    path: '/compute',
    component: () => import('@renderer/layouts/dialog/index.vue'),
    children: [
      {
        name: 'settingCompute',
        path: 'settingCompute',
        component: () => import('@renderer/views/compute/settingCompute.vue'),
      },
    ],
  },
  {
    path: '/search',
    component: () => import('@renderer/layouts/dialog/index.vue'),
    children: [
      {
        name: 'findSearch',
        path: 'findSearch',
        component: () => import('@renderer/views/compute/template/budgetDetail/findSearch.vue'),
      },
    ],
  },
] as RouteRecordRaw[]
